import { ConfigType, registerAs } from '@nestjs/config'

import { env } from '~/global/env'

export const asrRegToken = 'asr'

export const AsrConfig = registerAs(asrRegToken, () => ({
  accessKeyId: env('ASR_ACCESS_KEY_ID'),
  accessKeySecret: env('ASR_ACCESS_KEY_SECRET'),
}))

export type IAsrConfig = ConfigType<typeof AsrConfig>
